How can I optimize my PowerShell script to avoid multiple calls to the JSON file

visit shbcf.ru